<template>
  <!-- 净借记限额查询申请查询明细页面弹出框-->
  <el-dialog
    title="净借记限额查询申请查询明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" label-width="180px" :disabled="true">
      <el-row>
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="idSaps">
            <el-input v-model="formData.idSaps" placeholder="交易流水号"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="报文标识号：" prop="pkgId">
            <el-input v-model="formData.pkgId" placeholder="报文标识号"/>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="工作日期：" prop="workDate">
            <el-date-picker
              v-model="formData.workDate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择日期"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="被查询银行行号：" prop="oriSender">
            <el-input v-model="formData.oriSender" placeholder="被查询银行行号"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="被查询银行行名：" prop="oriSenderName">
            <el-input v-model="formData.oriSenderName" placeholder="被查询银行行名"/>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="圈存资金货币币种：" prop="cdtLdCurcd">
            <el-input v-model="formData.cdtLdCurcd" placeholder="圈存资金货币币种"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="圈存资金：" prop="cdtLd">
            <HtAmountInput v-model="formData.cdtLd" placeholder="圈存资金"/>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="质押额度货币币种：" prop="ttlPldgValCurcd">
            <el-input v-model="formData.ttlPldgValCurcd" placeholder="质押额度货币币种"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="质押额度：" prop="ttlPldgVal">
            <HtAmountInput v-model="formData.ttlPldgVal" placeholder="质押额度"/>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="授信额度货币币种：" prop="cdtXtnsnLmtCurcd">
            <el-input v-model="formData.cdtXtnsnLmtCurcd" placeholder="授信额度货币币种"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="授信额度：" prop="cdtXtnsnLmt">
            <HtAmountInput v-model="formData.cdtXtnsnLmt" placeholder="授信额度"/>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="净借记限额货币币种：" prop="netDbtLmtCurcd">
            <el-input v-model="formData.netDbtLmtCurcd" placeholder="净借记限额货币币种"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="净借记限额：" prop="netDbtLmt">
            <HtAmountInput v-model="formData.netDbtLmt" placeholder="净借记限额"/>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="当前可用净借记限额货币币种：" prop="avlblNetDbtCurcd">
            <el-input v-model="formData.avlblNetDbtCurcd" placeholder="当前可用净借记限额货币币种"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="当前可用净借记限额：" prop="avlblNetDbt">
            <HtAmountInput v-model="formData.avlblNetDbt" placeholder="当前可用净借记限额"/>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="备注：" prop="remarks">
            <el-input type="textarea" v-model="formData.remarks" placeholder="备注" maxlength="210" show-word-limit/>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="NPC处理状态：" prop="procStatus">
            <el-select v-model="formData.procStatus" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PROCESSSTATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="NPC处理码：" prop="procCode">
            <el-select v-model="formData.procCode" placeholder="请选择" style="width: 100%">
              <el-option
                :key="formData.procCode"
                :label="`${formData.procCode ? formData.procCode : ''}${formData.procCodeDesc ? '-' + formData.procCodeDesc : ''}`"
                :value="formData.procCode"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="24">
          <el-form-item label="NPC拒绝信息：" prop="rejectInfo">
            <el-input v-model="formData.rejectInfo" placeholder="NPC拒绝信息"/>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer"></div>
  </el-dialog>
</template>
<script>
import HtAmountInput from "@/views/components/HtAmountInput/index.vue";

export default {
  name: "NetDetails",
  components: {HtAmountInput},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
    };
  },
  mounted() {
  },
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
    },
    show() {
      this.open = true;
    },

    cancel() {
      this.open = false;
      this.reset();
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
